Hover
AutomatR.Windows.Activities.Hover
The "Hover" activity in AutomatR for Windows UI Automation simulates the action of moving the mouse pointer over a specified UI element on the application. This activity is often used for testing and interacting with UI elements that trigger events on hover.
Properties
Name | Description |
---|---|
Input | |
Windows Selector | A string defining the UI element to hover over. You can use the "Windows Selector" property or the "Windows Element" property to specify the UI element. |
Windows Element | Select the browse button to indicate the element on the app with the help of the Window selector window. You can use this property instead of the "Windows Selector." |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. String variables containing the desired display name. |
Optional | |
Timeout | Enter the time (in seconds) for the activity to be executed before throwing an exception. If not provided, the default timeout is used (e.g., 5 seconds). |
Delay | Enter the wait time (in seconds) before starting the activity. This can be useful for handling synchronization issues. Default is 0 seconds. |
How to use:
- Drag and drop the "Hover" activity onto the workflow.
- Configure the properties by either providing the Windows Selector or selecting the Windows Element with the help of the Window selector window.
- Optionally, set the timeout to control the maximum time for the activity to be executed before throwing an exception.
- Optionally, set the delay to wait before starting the hover action.
- Execute the workflow to simulate the mouse pointer hovering over the specified UI element.
Example: Consider an example where the "Hover" activity is used to simulate hovering over a button on a Windows application:
Hover:
Display Name: "Hover Submit Button"
Windows Selector: "Button[name='SubmitButton']"
Timeout: 10
In this example, the activity simulates the mouse pointer hovering over the UI element identified by the Windows Selector "Button[name='SubmitButton']" with a timeout of 10 seconds.